<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MC823 - Laboratório de Redes: Trabalho 01: Referência do Arquivo resposta.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Gerado por Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Busca');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">MC823 - Laboratório de Redes: Trabalho 01</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;Principal</span></a></li>
      <li><a href="annotated.html"><span>Estruturas&#160;de&#160;Dados</span></a></li>
      <li class="current"><a href="files.html"><span>Arquivos</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Busca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;de&#160;Arquivos</span></a></li>
      <li><a href="globals.html"><span>Globais</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#define-members">Definições e Macros</a> &#124;
<a href="#func-members">Funções</a>  </div>
  <div class="headertitle">
<div class="title">Referência do Arquivo resposta.c</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="resposta_8h_source.html">resposta.h</a>&quot;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
</div><div class="textblock"><div class="dynheader">
Gráfico de dependência de inclusões para resposta.c:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c__incl.png" border="0" usemap="#resposta_8c" alt=""/></div>
<map name="resposta_8c" id="resposta_8c">
<area shape="rect" id="node3" href="resposta_8h.html" title="resposta.h" alt="" coords="87,83,177,112"/><area shape="rect" id="node5" href="str_8h.html" title="str.h" alt="" coords="103,160,153,189"/></map>
</div>
</div>
<p><a href="resposta_8c_source.html">Vá para o código-fonte deste arquivo.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Definições e Macros</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="resposta_8c.html#a281d136eba7bc38021f2fccbf61a633f">NUM_MAX_DISCIPLINAS</a>&#160;&#160;&#160;10</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="resposta_8c.html#a5d429b813e4525632cd4064f5e47213e">TAM_MAX_NOME_DISCIPLINA</a>&#160;&#160;&#160;120</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Funções</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="resposta_8c.html#a9bb7e31e6340d62b3afb839655847563">preparaResposta</a> (char *buf)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="resposta_8c.html#a2a098bc71f2a19dd74318fd778676979">leComentario</a> (char *disc)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="resposta_8c.html#a2b6f397b0bfae5590b292d282513c54b">escreveComentario</a> (char *disc, char *comentario)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="resposta_8c.html#adca402fde30bac4845d32a7dd4e6160a">listaDisciplinas</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="resposta_8c.html#ae53e5d927eddd073efa7dd3777c222c2">programaDisciplina</a> (char *disc)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="resposta_8c.html#aae0e9c217f1ede36bbf9821b36bba3f9">infoDisciplinas</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="resposta_8c.html#a6c04d45a3b24b43c86d50889bde25d67">infoDisciplina</a> (char *disc)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="resposta_8c.html#aaf2c986b7320373a463f607a67c07365">uppercase</a> (char *sPtr)</td></tr>
</table>
<hr/><h2>Definições e macros</h2>
<a class="anchor" id="a281d136eba7bc38021f2fccbf61a633f"></a><!-- doxytag: member="resposta.c::NUM_MAX_DISCIPLINAS" ref="a281d136eba7bc38021f2fccbf61a633f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NUM_MAX_DISCIPLINAS&#160;&#160;&#160;10</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definição na linha <a class="el" href="resposta_8c_source.html#l00004">4</a> do arquivo <a class="el" href="resposta_8c_source.html">resposta.c</a>.</p>

</div>
</div>
<a class="anchor" id="a5d429b813e4525632cd4064f5e47213e"></a><!-- doxytag: member="resposta.c::TAM_MAX_NOME_DISCIPLINA" ref="a5d429b813e4525632cd4064f5e47213e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TAM_MAX_NOME_DISCIPLINA&#160;&#160;&#160;120</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definição na linha <a class="el" href="resposta_8c_source.html#l00005">5</a> do arquivo <a class="el" href="resposta_8c_source.html">resposta.c</a>.</p>

</div>
</div>
<hr/><h2>Funções</h2>
<a class="anchor" id="a2b6f397b0bfae5590b292d282513c54b"></a><!-- doxytag: member="resposta.c::escreveComentario" ref="a2b6f397b0bfae5590b292d282513c54b" args="(char *disc, char *comentario)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* escreveComentario </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>disc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>comentario</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função que escreve um comentário enviado pelo cliente para o servidor. A escrita do comentário se dá na disciplina passada pelo cliente, se existir.</p>
<p>disc - sigla da disciplina  comentario - comentário a ser escrito</p>
<p>String com uma mensagem de sucesso, caso a escrita seja bem sucedida. </p>

<p>Definição na linha <a class="el" href="resposta_8c_source.html#l00111">111</a> do arquivo <a class="el" href="resposta_8c_source.html">resposta.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções utilizadas por esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_a2b6f397b0bfae5590b292d282513c54b_cgraph.png" border="0" usemap="#resposta_8c_a2b6f397b0bfae5590b292d282513c54b_cgraph" alt=""/></div>
<map name="resposta_8c_a2b6f397b0bfae5590b292d282513c54b_cgraph" id="resposta_8c_a2b6f397b0bfae5590b292d282513c54b_cgraph">
<area shape="rect" id="node3" href="resposta_8c.html#aaf2c986b7320373a463f607a67c07365" title="uppercase" alt="" coords="201,5,289,35"/></map>
</div>
</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_a2b6f397b0bfae5590b292d282513c54b_icgraph.png" border="0" usemap="#resposta_8c_a2b6f397b0bfae5590b292d282513c54b_icgraph" alt=""/></div>
<map name="resposta_8c_a2b6f397b0bfae5590b292d282513c54b_icgraph" id="resposta_8c_a2b6f397b0bfae5590b292d282513c54b_icgraph">
<area shape="rect" id="node3" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="200,5,331,35"/><area shape="rect" id="node5" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="380,5,433,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6c04d45a3b24b43c86d50889bde25d67"></a><!-- doxytag: member="resposta.c::infoDisciplina" ref="a6c04d45a3b24b43c86d50889bde25d67" args="(char *disc)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* infoDisciplina </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>disc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função que retorna ao cliente todas as informações de uma disciplina requisitada, se essa existir.</p>
<p>disc - a sigla da disciplina</p>
<p>string com todas as informações sobre a disciplina </p>

<p>Definição na linha <a class="el" href="resposta_8c_source.html#l00331">331</a> do arquivo <a class="el" href="resposta_8c_source.html">resposta.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções utilizadas por esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_a6c04d45a3b24b43c86d50889bde25d67_cgraph.png" border="0" usemap="#resposta_8c_a6c04d45a3b24b43c86d50889bde25d67_cgraph" alt=""/></div>
<map name="resposta_8c_a6c04d45a3b24b43c86d50889bde25d67_cgraph" id="resposta_8c_a6c04d45a3b24b43c86d50889bde25d67_cgraph">
<area shape="rect" id="node3" href="str_8c.html#a9c98046afe58b4d941f546c5a604a7de" title="str_concat_chararr" alt="" coords="161,84,303,113"/><area shape="rect" id="node14" href="str_8c.html#a43e9efab3e78f169462b9f842c827fba" title="str_initialize" alt="" coords="184,151,280,180"/><area shape="rect" id="node18" href="resposta_8c.html#aaf2c986b7320373a463f607a67c07365" title="uppercase" alt="" coords="188,204,276,233"/><area shape="rect" id="node5" href="str_8c.html#a47d6c89b7dacac751de1965e2ee90189" title="str_free_size" alt="" coords="353,7,455,36"/><area shape="rect" id="node9" href="str_8c.html#ae20e94ac638a09b2cd12680cbdae2910" title="str_max_size" alt="" coords="504,59,611,88"/><area shape="rect" id="node12" href="mm_8c.html#a93a8ec6e8a6eef0f62b7e5b50d0bf9e4" title="xrealloc" alt="" coords="369,111,439,140"/><area shape="rect" id="node7" href="str_8c.html#a0df87a68167272d6191fd0fcef787752" title="str_cur_size" alt="" coords="508,5,607,35"/><area shape="rect" id="node16" href="mm_8c.html#a42ccfa6fc49cc4ce90cc44cd05052490" title="xmalloc" alt="" coords="369,164,439,193"/></map>
</div>
</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_a6c04d45a3b24b43c86d50889bde25d67_icgraph.png" border="0" usemap="#resposta_8c_a6c04d45a3b24b43c86d50889bde25d67_icgraph" alt=""/></div>
<map name="resposta_8c_a6c04d45a3b24b43c86d50889bde25d67_icgraph" id="resposta_8c_a6c04d45a3b24b43c86d50889bde25d67_icgraph">
<area shape="rect" id="node3" href="resposta_8h.html#a2a098bc71f2a19dd74318fd778676979" title="leComentario" alt="" coords="161,5,268,35"/><area shape="rect" id="node5" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="317,32,448,61"/><area shape="rect" id="node7" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="497,32,551,61"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aae0e9c217f1ede36bbf9821b36bba3f9"></a><!-- doxytag: member="resposta.c::infoDisciplinas" ref="aae0e9c217f1ede36bbf9821b36bba3f9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* infoDisciplinas </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função que retorna as informações de todas as disciplinas cadastradas no servidor.</p>
<p>Uma string com as informações de todas as disciplinas </p>

<p>Definição na linha <a class="el" href="resposta_8c_source.html#l00258">258</a> do arquivo <a class="el" href="resposta_8c_source.html">resposta.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções utilizadas por esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_aae0e9c217f1ede36bbf9821b36bba3f9_cgraph.png" border="0" usemap="#resposta_8c_aae0e9c217f1ede36bbf9821b36bba3f9_cgraph" alt=""/></div>
<map name="resposta_8c_aae0e9c217f1ede36bbf9821b36bba3f9_cgraph" id="resposta_8c_aae0e9c217f1ede36bbf9821b36bba3f9_cgraph">
<area shape="rect" id="node3" href="str_8c.html#a9c98046afe58b4d941f546c5a604a7de" title="str_concat_chararr" alt="" coords="167,84,308,113"/><area shape="rect" id="node14" href="str_8c.html#a43e9efab3e78f169462b9f842c827fba" title="str_initialize" alt="" coords="189,151,285,180"/><area shape="rect" id="node18" href="resposta_8c.html#aaf2c986b7320373a463f607a67c07365" title="uppercase" alt="" coords="193,204,281,233"/><area shape="rect" id="node5" href="str_8c.html#a47d6c89b7dacac751de1965e2ee90189" title="str_free_size" alt="" coords="359,7,460,36"/><area shape="rect" id="node9" href="str_8c.html#ae20e94ac638a09b2cd12680cbdae2910" title="str_max_size" alt="" coords="509,59,616,88"/><area shape="rect" id="node12" href="mm_8c.html#a93a8ec6e8a6eef0f62b7e5b50d0bf9e4" title="xrealloc" alt="" coords="375,111,444,140"/><area shape="rect" id="node7" href="str_8c.html#a0df87a68167272d6191fd0fcef787752" title="str_cur_size" alt="" coords="513,5,612,35"/><area shape="rect" id="node16" href="mm_8c.html#a42ccfa6fc49cc4ce90cc44cd05052490" title="xmalloc" alt="" coords="375,164,444,193"/></map>
</div>
</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_aae0e9c217f1ede36bbf9821b36bba3f9_icgraph.png" border="0" usemap="#resposta_8c_aae0e9c217f1ede36bbf9821b36bba3f9_icgraph" alt=""/></div>
<map name="resposta_8c_aae0e9c217f1ede36bbf9821b36bba3f9_icgraph" id="resposta_8c_aae0e9c217f1ede36bbf9821b36bba3f9_icgraph">
<area shape="rect" id="node3" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="165,5,296,35"/><area shape="rect" id="node5" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="345,5,399,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2a098bc71f2a19dd74318fd778676979"></a><!-- doxytag: member="resposta.c::leComentario" ref="a2a098bc71f2a19dd74318fd778676979" args="(char *disc)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* leComentario </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>disc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função que le os comentários escritos para uma certa disciplina, retornando-os.</p>
<p>disc - a sigla da disciplina</p>
<p>uma string com todos os comentários da disciplina </p>

<p>Definição na linha <a class="el" href="resposta_8c_source.html#l00071">71</a> do arquivo <a class="el" href="resposta_8c_source.html">resposta.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções utilizadas por esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_a2a098bc71f2a19dd74318fd778676979_cgraph.png" border="0" usemap="#resposta_8c_a2a098bc71f2a19dd74318fd778676979_cgraph" alt=""/></div>
<map name="resposta_8c_a2a098bc71f2a19dd74318fd778676979_cgraph" id="resposta_8c_a2a098bc71f2a19dd74318fd778676979_cgraph">
<area shape="rect" id="node3" href="resposta_8c.html#a6c04d45a3b24b43c86d50889bde25d67" title="infoDisciplina" alt="" coords="164,151,268,180"/><area shape="rect" id="node5" href="str_8c.html#a9c98046afe58b4d941f546c5a604a7de" title="str_concat_chararr" alt="" coords="319,84,460,113"/><area shape="rect" id="node16" href="str_8c.html#a43e9efab3e78f169462b9f842c827fba" title="str_initialize" alt="" coords="341,151,437,180"/><area shape="rect" id="node20" href="resposta_8c.html#aaf2c986b7320373a463f607a67c07365" title="uppercase" alt="" coords="345,204,433,233"/><area shape="rect" id="node7" href="str_8c.html#a47d6c89b7dacac751de1965e2ee90189" title="str_free_size" alt="" coords="511,7,612,36"/><area shape="rect" id="node11" href="str_8c.html#ae20e94ac638a09b2cd12680cbdae2910" title="str_max_size" alt="" coords="661,59,768,88"/><area shape="rect" id="node14" href="mm_8c.html#a93a8ec6e8a6eef0f62b7e5b50d0bf9e4" title="xrealloc" alt="" coords="527,111,596,140"/><area shape="rect" id="node9" href="str_8c.html#a0df87a68167272d6191fd0fcef787752" title="str_cur_size" alt="" coords="665,5,764,35"/><area shape="rect" id="node18" href="mm_8c.html#a42ccfa6fc49cc4ce90cc44cd05052490" title="xmalloc" alt="" coords="527,164,596,193"/></map>
</div>
</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_a2a098bc71f2a19dd74318fd778676979_icgraph.png" border="0" usemap="#resposta_8c_a2a098bc71f2a19dd74318fd778676979_icgraph" alt=""/></div>
<map name="resposta_8c_a2a098bc71f2a19dd74318fd778676979_icgraph" id="resposta_8c_a2a098bc71f2a19dd74318fd778676979_icgraph">
<area shape="rect" id="node3" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="163,5,293,35"/><area shape="rect" id="node5" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="343,5,396,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="adca402fde30bac4845d32a7dd4e6160a"></a><!-- doxytag: member="resposta.c::listaDisciplinas" ref="adca402fde30bac4845d32a7dd4e6160a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* listaDisciplinas </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função que lista todas as disciplinas cadastradas no servidor.</p>
<p>string com as siglas e nomes das disciplinas cadastradas. </p>

<p>Definição na linha <a class="el" href="resposta_8c_source.html#l00140">140</a> do arquivo <a class="el" href="resposta_8c_source.html">resposta.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções utilizadas por esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_adca402fde30bac4845d32a7dd4e6160a_cgraph.png" border="0" usemap="#resposta_8c_adca402fde30bac4845d32a7dd4e6160a_cgraph" alt=""/></div>
<map name="resposta_8c_adca402fde30bac4845d32a7dd4e6160a_cgraph" id="resposta_8c_adca402fde30bac4845d32a7dd4e6160a_cgraph">
<area shape="rect" id="node3" href="str_8c.html#a9c98046afe58b4d941f546c5a604a7de" title="str_concat_chararr" alt="" coords="169,72,311,101"/><area shape="rect" id="node14" href="str_8c.html#a43e9efab3e78f169462b9f842c827fba" title="str_initialize" alt="" coords="192,139,288,168"/><area shape="rect" id="node5" href="str_8c.html#a47d6c89b7dacac751de1965e2ee90189" title="str_free_size" alt="" coords="361,7,463,36"/><area shape="rect" id="node9" href="str_8c.html#ae20e94ac638a09b2cd12680cbdae2910" title="str_max_size" alt="" coords="512,59,619,88"/><area shape="rect" id="node12" href="mm_8c.html#a93a8ec6e8a6eef0f62b7e5b50d0bf9e4" title="xrealloc" alt="" coords="377,111,447,140"/><area shape="rect" id="node7" href="str_8c.html#a0df87a68167272d6191fd0fcef787752" title="str_cur_size" alt="" coords="516,5,615,35"/><area shape="rect" id="node16" href="mm_8c.html#a42ccfa6fc49cc4ce90cc44cd05052490" title="xmalloc" alt="" coords="377,164,447,193"/></map>
</div>
</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_adca402fde30bac4845d32a7dd4e6160a_icgraph.png" border="0" usemap="#resposta_8c_adca402fde30bac4845d32a7dd4e6160a_icgraph" alt=""/></div>
<map name="resposta_8c_adca402fde30bac4845d32a7dd4e6160a_icgraph" id="resposta_8c_adca402fde30bac4845d32a7dd4e6160a_icgraph">
<area shape="rect" id="node3" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="168,5,299,35"/><area shape="rect" id="node5" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="348,5,401,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a9bb7e31e6340d62b3afb839655847563"></a><!-- doxytag: member="resposta.c::preparaResposta" ref="a9bb7e31e6340d62b3afb839655847563" args="(char *buf)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* preparaResposta </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>buf</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função que recebe um parâmetro do cliente e, a partir disso, executa as rotinas apropriadas, preparando a resposta adequada a ser enviada ao cliente.</p>
<p>buf - string recebida pelo cliente</p>
<p>string com a resposta esperada pelo cliente </p>

<p>Definição na linha <a class="el" href="resposta_8c_source.html#l00019">19</a> do arquivo <a class="el" href="resposta_8c_source.html">resposta.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções utilizadas por esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_a9bb7e31e6340d62b3afb839655847563_cgraph.png" border="0" usemap="#resposta_8c_a9bb7e31e6340d62b3afb839655847563_cgraph" alt=""/></div>
<map name="resposta_8c_a9bb7e31e6340d62b3afb839655847563_cgraph" id="resposta_8c_a9bb7e31e6340d62b3afb839655847563_cgraph">
<area shape="rect" id="node3" href="resposta_8c.html#a2b6f397b0bfae5590b292d282513c54b" title="escreveComentario" alt="" coords="184,5,331,35"/><area shape="rect" id="node7" href="resposta_8c.html#a6c04d45a3b24b43c86d50889bde25d67" title="infoDisciplina" alt="" coords="400,104,504,133"/><area shape="rect" id="node25" href="resposta_8c.html#aae0e9c217f1ede36bbf9821b36bba3f9" title="infoDisciplinas" alt="" coords="396,157,508,187"/><area shape="rect" id="node30" href="resposta_8c.html#a2a098bc71f2a19dd74318fd778676979" title="leComentario" alt="" coords="204,109,311,139"/><area shape="rect" id="node33" href="resposta_8c.html#adca402fde30bac4845d32a7dd4e6160a" title="listaDisciplinas" alt="" coords="395,264,509,293"/><area shape="rect" id="node37" href="resposta_8c.html#ae53e5d927eddd073efa7dd3777c222c2" title="programaDisciplina" alt="" coords="380,211,524,240"/><area shape="rect" id="node5" href="resposta_8c.html#aaf2c986b7320373a463f607a67c07365" title="uppercase" alt="" coords="601,104,689,133"/><area shape="rect" id="node9" href="str_8c.html#a9c98046afe58b4d941f546c5a604a7de" title="str_concat_chararr" alt="" coords="575,211,716,240"/><area shape="rect" id="node20" href="str_8c.html#a43e9efab3e78f169462b9f842c827fba" title="str_initialize" alt="" coords="597,157,693,187"/><area shape="rect" id="node11" href="str_8c.html#a47d6c89b7dacac751de1965e2ee90189" title="str_free_size" alt="" coords="767,237,868,267"/><area shape="rect" id="node15" href="str_8c.html#ae20e94ac638a09b2cd12680cbdae2910" title="str_max_size" alt="" coords="917,289,1024,319"/><area shape="rect" id="node18" href="mm_8c.html#a93a8ec6e8a6eef0f62b7e5b50d0bf9e4" title="xrealloc" alt="" coords="783,184,852,213"/><area shape="rect" id="node13" href="str_8c.html#a0df87a68167272d6191fd0fcef787752" title="str_cur_size" alt="" coords="921,236,1020,265"/><area shape="rect" id="node22" href="mm_8c.html#a42ccfa6fc49cc4ce90cc44cd05052490" title="xmalloc" alt="" coords="783,131,852,160"/></map>
</div>
</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_a9bb7e31e6340d62b3afb839655847563_icgraph.png" border="0" usemap="#resposta_8c_a9bb7e31e6340d62b3afb839655847563_icgraph" alt=""/></div>
<map name="resposta_8c_a9bb7e31e6340d62b3afb839655847563_icgraph" id="resposta_8c_a9bb7e31e6340d62b3afb839655847563_icgraph">
<area shape="rect" id="node3" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="185,5,239,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ae53e5d927eddd073efa7dd3777c222c2"></a><!-- doxytag: member="resposta.c::programaDisciplina" ref="ae53e5d927eddd073efa7dd3777c222c2" args="(char *disc)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* programaDisciplina </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>disc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função que retorna ao cliente o programa de uma determinada disciplina, se essa existir.</p>
<p>disc - a sigla da disciplina requisitada</p>
<p>string com o programa da disciplina </p>

<p>Definição na linha <a class="el" href="resposta_8c_source.html#l00186">186</a> do arquivo <a class="el" href="resposta_8c_source.html">resposta.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções utilizadas por esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_ae53e5d927eddd073efa7dd3777c222c2_cgraph.png" border="0" usemap="#resposta_8c_ae53e5d927eddd073efa7dd3777c222c2_cgraph" alt=""/></div>
<map name="resposta_8c_ae53e5d927eddd073efa7dd3777c222c2_cgraph" id="resposta_8c_ae53e5d927eddd073efa7dd3777c222c2_cgraph">
<area shape="rect" id="node3" href="str_8c.html#a9c98046afe58b4d941f546c5a604a7de" title="str_concat_chararr" alt="" coords="201,84,343,113"/><area shape="rect" id="node14" href="str_8c.html#a43e9efab3e78f169462b9f842c827fba" title="str_initialize" alt="" coords="224,151,320,180"/><area shape="rect" id="node18" href="resposta_8c.html#aaf2c986b7320373a463f607a67c07365" title="uppercase" alt="" coords="228,204,316,233"/><area shape="rect" id="node5" href="str_8c.html#a47d6c89b7dacac751de1965e2ee90189" title="str_free_size" alt="" coords="393,7,495,36"/><area shape="rect" id="node9" href="str_8c.html#ae20e94ac638a09b2cd12680cbdae2910" title="str_max_size" alt="" coords="544,59,651,88"/><area shape="rect" id="node12" href="mm_8c.html#a93a8ec6e8a6eef0f62b7e5b50d0bf9e4" title="xrealloc" alt="" coords="409,111,479,140"/><area shape="rect" id="node7" href="str_8c.html#a0df87a68167272d6191fd0fcef787752" title="str_cur_size" alt="" coords="548,5,647,35"/><area shape="rect" id="node16" href="mm_8c.html#a42ccfa6fc49cc4ce90cc44cd05052490" title="xmalloc" alt="" coords="409,164,479,193"/></map>
</div>
</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_ae53e5d927eddd073efa7dd3777c222c2_icgraph.png" border="0" usemap="#resposta_8c_ae53e5d927eddd073efa7dd3777c222c2_icgraph" alt=""/></div>
<map name="resposta_8c_ae53e5d927eddd073efa7dd3777c222c2_icgraph" id="resposta_8c_ae53e5d927eddd073efa7dd3777c222c2_icgraph">
<area shape="rect" id="node3" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="200,5,331,35"/><area shape="rect" id="node5" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="380,5,433,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aaf2c986b7320373a463f607a67c07365"></a><!-- doxytag: member="resposta.c::uppercase" ref="aaf2c986b7320373a463f607a67c07365" args="(char *sPtr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void uppercase </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>sPtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função auxiliar que converte todos os caracteres de uma string para letra maiúscula.</p>
<p>sPtr - String a ser padronizada </p>

<p>Definição na linha <a class="el" href="resposta_8c_source.html#l00391">391</a> do arquivo <a class="el" href="resposta_8c_source.html">resposta.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="resposta_8c_aaf2c986b7320373a463f607a67c07365_icgraph.png" border="0" usemap="#resposta_8c_aaf2c986b7320373a463f607a67c07365_icgraph" alt=""/></div>
<map name="resposta_8c_aaf2c986b7320373a463f607a67c07365_icgraph" id="resposta_8c_aaf2c986b7320373a463f607a67c07365_icgraph">
<area shape="rect" id="node3" href="resposta_8h.html#a2b6f397b0bfae5590b292d282513c54b" title="escreveComentario" alt="" coords="339,5,485,35"/><area shape="rect" id="node9" href="resposta_8h.html#a6c04d45a3b24b43c86d50889bde25d67" title="infoDisciplina" alt="" coords="165,109,269,139"/><area shape="rect" id="node15" href="resposta_8h.html#aae0e9c217f1ede36bbf9821b36bba3f9" title="infoDisciplinas" alt="" coords="356,163,468,192"/><area shape="rect" id="node18" href="resposta_8h.html#ae53e5d927eddd073efa7dd3777c222c2" title="programaDisciplina" alt="" coords="145,213,289,243"/><area shape="rect" id="node5" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="533,109,664,139"/><area shape="rect" id="node7" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="713,109,767,139"/><area shape="rect" id="node11" href="resposta_8h.html#a2a098bc71f2a19dd74318fd778676979" title="leComentario" alt="" coords="359,109,465,139"/></map>
</div>
</p>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Estruturas de Dados</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Arquivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funções</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variáveis</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Definições de Tipos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Definições e Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Gerado em Quarta, 25 de Abril de 2012 23:42:04 para MC823 - Laboratório de Redes: Trabalho 01 por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
